package com.liy.supercloud.server.gateway.feign;

import com.liy.framework.common.extvo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Component
@FeignClient(
        name = "sys",
        fallbackFactory = SystemClientFallbackFactory.class
)
public interface SystemClient {
    @ResponseBody
    @RequestMapping(
            value = {"/permission/query/role/{roleId}"},
            method = {RequestMethod.POST}
    )
    ResultVO queryRolePermission(@PathVariable String var1) throws Exception;
}
